<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr">
    <head>
        <title>{% block title %} {% endblock %} - APNET.</title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        {% block csslink %}
        <link rel="stylesheet" href="/media/css/minimalist.css" type="text/css" media="screen" />
        <link rel="stylesheet" href="/media/css/content-right.css" type="text/css" media="screen" />
        <link rel="stylesheet" href="/media/css/brown.css" type="text/css" media="screen" />
        <link rel="stylesheet" href="/media/css/bg_grey.css" type="text/css" media="screen" />
        {% endblock %}
    </head>
    <body>
        <div id="header">
            <h1><a href="/">{% block header %}APNET. Tenements management{% endblock %}</a></h1>
        </div>
        <div id="page">
            <div id="content">
            <h2>{% block page_name%}Page name{% endblock %}</h2>
			{% block  main_content %}
			
            {% endblock %}
         	</div>
            <div id="sidebar" class="bg_color">
                {% if app_user %}
                    <fieldset>
        				<legend> Welcome ! </legend>
                        {{ app_user }}<br>
                        <a title="Logout" href="{{ lurl }}">Logout</a> 
                    </fieldset>

                {% endif %}
                
                {% block login %}
                <!--  <form action="" method="post"> -->
                    <fieldset>
        				<legend>Login</legend>
                        Please, follow next link to authorize again: 
                        <a title="Login" href="{{ lurl }}">Google authorization</a>
                        
                        <!-- <label for="username">Login:</label>
                        <input type="text" name="username" id="username" value=""/>
    
                        <label for="password">Password:</label>
                        <input type="password" name="password" id="password" value=""/>
                        <div class="submit">
                            <input type="submit" name="login" value="Login" /> 
                        </div> -->
                    </fieldset>
                <!-- </form>  -->
                {% endblock login%}
				{% block navigation %}
                <ul>
                    <li class="widget widget_pages" id="pages">

						{% block features %}
                        <h2 class="widgettitle">Vie de la copropriété</h2>
                        <h2 class="widgettitle">Création de la copropriété</h2>
                        {% if app_user != None %}
                        	
                        <ul>
                            {% if app_user.is_syndic_creator == True %}
                            <li class="page_item"><a title="Immeubles" href="/ams/immeubles/">Immeubles</a></li>
                            {% endif %}
                        </ul>
                        	
                       	{% endif %}
                        <h2 class="widgettitle">Consultation</h2>
                        <h2 class="widgettitle">Clôture</h2>
                        {% endblock features %}
                        {% block admin %}
                        {% if app_user != None %}
                                {% if app_user.is_syndic_creator == True %}
                        <h2 class="widgettitle">Administration</h2>
                        <ul>
                            <li class="page_item"><a title="Users" href="/ams/users/">Users</a></li>
                        </ul>
                                {% endif %}
                        {% endif %}
                        {% endblock admin %}
                        {% block settings%}
                        <h2 class="widgettitle">Settings</h2>
                        <ul>
                            <li class="page_item"><a title="Profile" href="/ams/profile/">My profile</a></li>
                            {% if app_user.is_syndic_admin == True %}
                            <li class="page_item"><a title="List Syndics" href="/ams/syndic/">Syndics</a></li>
							{% endif %}
                        </ul>
                        {% endblock settings%}
                    </li>
                    <li class="widget widget_news" id="news">
                        {% block reminder %}
                        <h2>Reminder</h2>
                        <p>
                            <b>20.07.2011 14:00</b> A meeting with the contractor to repair the roof.
                        </p>
                        <p>
							The third entrance is faulty switch.
	                    </p>
	                    {% endblock reminder %}
                    </li>
                </ul>
                {% endblock %}
            </div>
        </div>
        <div id="footer">
            <p>
                Copyright &copy; <a href="#">ATNET</a> 2012
            </p>
        </div>
    </body>
</html>